/*
 * usonicRanger.h
 *
 *  Created on: Nov 22, 2012
 *      Author: bouchier
 */

#ifndef USONICRANGER_H_
#define USONICRANGER_H_

struct usonicRanger
{
	struct timeval tv0;
	int flag;
	unsigned int dioTrigIndex;
	unsigned int dioSenseIndex;
	int distance;
};

struct usonicRanger * initUsonicRanger(CQEGpioInt& gpio, int dioTrigPort, int dioSensePort);
void triggerUsonicRanger(struct usonicRanger *usRanger_p);

#endif /* USONICRANGER_H_ */
